package com.dxysun.dubbo.client;

import com.dxysun.dubbo.api.HelloService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * @author dongxiyan
 * @date 2020/2/22 17:01
 */
public class ClientMain
{

	public static void main(String[] args) throws IOException {
		ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext(new String[]
		{ "application.xml" });
		HelloService helloService = (HelloService) classPathXmlApplicationContext.getBean("helloService");
		System.out.println(helloService.sayHello("client"));

		System.in.read();
	}
}
